function clickIcon(obj) {
	console.log($(obj).parent().find("img").attr("src"));
	var iconObj = $(obj).parent().find("img");
	var src = iconObj.attr("src");
	var iconHolder = $("#logoIconHolder img#icon");
	if(iconHolder.size() == 0) {
		var dom = "<img id='icon' style='z-index: 20; position:absolute;'";
		dom += " src='" + src + "'>";
		$("#logoIconHolder").append(dom);
	} else {
		iconHolder.attr("src", src);
	}
	iconHolder = $("#logoIconHolder img#icon");
	var logoW = $("#logoIconHolder img#logo").width();
	var logoH = $("#logoIconHolder img#logo").height();
	var iconW = iconObj.width();
	var iconH = iconObj.height();
	var left = logoW - (logoW * 0.01) - iconW;
	var top = logoH - (logoH * 0.01) - iconH;
	iconHolder.width(iconW);
	iconHolder.height(iconH);
	iconHolder.css("left", left + "px");
	iconHolder.css("top", top + "px");
	
}

function startMerge() {
	if($("#logoIconHolder img#icon").size() == 0) {
		alert("你还没有选择icon吧");
		return;
	}
	var icon = $("#logoIconHolder img#icon");
	var iconSrc = icon.attr("src");
	var iconLeft = icon.position().left;
	var iconTop = icon.position().top;
	var iconW = icon.width();
	var iconH = icon.height();
	var logo = $("#logoIconHolder img#logo");
	var logoW = logo.width();
	var logoH = logo.height();
	window.location = "servlet/iconMerge?iconSrc=" + iconSrc
		+ "&logoInfo=" + logoW + "," + logoH
		+ "&iconInfo=" + iconLeft + "," + iconTop + "," + iconW + "," + iconH;
}